<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const fnc = function fn1(a, b, c) {
        console.log(fnc.name);
      };
      fnc();
      const user = {
        sayBye: function fn2() {
          console.log(fn2);
        },
      };
      const arr = [
        function fn3() {
          // 匿名 具名
          console.log(this[0].name);
        },
      ];
      arr[0]();
    </script>
  </body>
</html>
